home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows News 2010 Summer - Disc 1
/
WN_Ete2010_CD1.iso
/
Onglet5
/
Weezo
/
Weezo setup.exe
/
{code_appDir}
/
www
/
themes
/
aqua
/
background.php
next >
Wrap
PHP Script
|
2010-05-19
|
3KB
|
79 lines
<?php
/**
* Top banner
*/
?>
<div class="mainFrameBanner">
<a href="javascript:logout()" <?php echo outToolTip(cfCaption('genLogout'));?> style="float:right"><img src="/themes/aqua/logout.png" alt=""></a>
<div style="float:right;text-align:right;font-size:85%;margin-right:1em;line-height:20px">
<?php
// Theme selection control
if(cfGGetVar('allowUserThemeChange')) echo outThemeSelectionControl('user',false,'POST','',true,true);
// config button
echo '<a href="javascript:'.fConfigLink().'" id="menuConfig" class="menuItem" style="vertical-align:middle;margin-left:1em;margin-right:0px">';
echo outImage(outIcon('config3'),false, outToolTip(cfCaption('mainConfigButton')), 'width:16px; height:16px;');
echo "</a><br>\n";
// Clock
fInsertClock(true);
echo '</div>';
echo '<div style="background:white;margin:2px;margin-right:10px;padding:2px;border:1px solid #63829F;float:left"><img src="'.cfExtGFX('/gfx/icons/'.WEnv::user()->getVar('icon'),30,30).'" alt=""></div><div class="textShadow" style="margin-top:10px;height:auto;width:200px">'.cfUTF8Encode(WEnv::user()->getVar('name')).'</div>';
?>
</div>
<?php
/**
* Left-side menu
*/
?>
<div id="winBarOuter" class="menuFrameBody <?php if(cfGetBrowser()!=='ie') echo ' dropShadow';?>" style="position:absolute;bottom:0px;width:218px;left:-218px;top:40px;overflow:auto">
<?php
if(cfGetBrowser()=='ie'){
'<div style="background:url(/gfx/s/r.png);width:4px;right:0px;height:100%"></div>';
}
// Display resources buttons
foreach(WEnv::user()->getResourcesLinked() as $rid=>$res){
echo '<a id="R'.$rid.'" href="javascript:winMonitor(\''.$rid.'\');'.$res->getVar('resourceJsLink').'" class="menuLarge">';
echo '<span class="menuFrame"><img src="'.$res->config()->icon16().'" style="width:16px;height:16px" alt=""></span>';
echo '<span class="menuName">'.cfUTF8Encode(cfStrTruncate($res->getVar('name'),32)).'</span>';
echo '<span>'.cfUTF8Encode($res->config()->definition('resourceTypeLabel')).'</span><br clear="all">';
echo "</a>\n";
}
?>
</div>
<?php
// Weezo.net link
require_once('outputFunctions.php');
echo '<span onclick="window.open(\''.APP_SITE.'\')" style="color:#555;cursor:pointer; position:absolute;bottom:7px;left:240px">Weezo - '.cfGGetVar('appVersion').' '.outImage(outIcon('logoSmall'),'#',false,'vertical-align:top;margin-left:1em').'</span>';
?>
<script type="text/javascript">
winPadding={'top':38,'left':216,'bottom':-3,'right':-3};
function winMonitor(win,action){
var rid,e,l;
if(typeof win=='string') rid=win; else rid=win.getResourceId();
if(!rid||!dgi("R"+rid)) return;
if(action==='minimize') {
if(dgi(rid)) dgi(rid).className='menuLarge reduced';
if(dgi('R'+rid)) dgi('R'+rid).className='menuLarge reduced';
return;
}
l=dgi('winBarOuter').getElementsByTagName("A");
for(e in l){
if(l[e].id!="R"+rid || action=='close') {
if(l[e].id!==undefined) $(l[e].id).e.className().remove('selected');
}
else
l[e].className='menuLarge selected';
}
}
function resizeFrames(){alignBottom(dgi('winBarOuter'),D.body,4)}
D.body.onresize=resizeFrames;
resizeFrames();
if(windowsAnimation) wl.anim({'item':dgi('winBarOuter'),'duration':2000,'function':function(p,anim){return {'left':(218*(-(Math.exp(-8*p)*Math.abs(Math.cos(12*p))))+'px')}}});
else dgi('winBarOuter').style.left='0px';
</script>